package cn.wolfcode.shop.cloud.domain;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@ToString
@NoArgsConstructor

public class User implements Serializable {

    private Long id;
    @JsonIgnore
    private String nickname;//昵称
    @JsonIgnore
    private String password;//密码
    @JsonIgnore
    private String salt;//盐

    private String head;//头像

    private Date registerDate;//注册时间

    private Date lastLoginDate;//最后登录时间

    private Integer loginCount;//登录次数

    public User(Long id, String nickname) {
        this.id = id;
        this.nickname = nickname;
    }
}
